$(function(){
			var a = 0, c = 0;
			var $choice1 = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list>li .group_chose>span'),
			    $li_choice = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list>li'),
			    $li_choice_group = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list>li .group_chose'),
			    $nex_btn = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_bottom .group_bottom_btn'),
			    $submit_btn = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_bottom .group_bottom_btn_submit'),
			    $li_age_group_label1 = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_age .group_down .age_group1>label'),
			    $li_age_group_label2 = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_age .group_down .age_group2>label'),
			    $li_age_group_label3 = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_age .group_down .age_group3>label'),
			    $li_age_group_label4 = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_age .group_down .age_group4>label'),
			    $li_age_group_label5 = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_age .group_down .age_group5>label'),
			    $li_age_group = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_age .group_down .age_group'),
			    $li_care_child = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_care .group_down .li_care_list .li_care_list_child'),
			    $li_demand = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_demand .li_demand_list>dd'),
			    $li_demand_child = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_demand .li_demand_list>dd>a'),
			    $group_center = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_center'),
			    $group_success = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_success'),
			    $li_create = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_left .personal_content_service_left_list .li_create'),
			    $li_finish = $('#personal_content .personal_content_service .center_personal_content_service .personal_content_service_left .personal_content_service_left_list .li_finish');

            
			//下一步按钮
			$nex_btn.click(function(event) {
				a++;
				if(a>=0<$li_choice.length){
					if(a==0){list_group_active1();}
					else if(a==1){list_group_active2();}
					else if(a==2){list_group_active3();}
					else if(a==3){list_group_active4();}
					if(a>=$li_choice.length){
						a == $li_choice.length;
						list_group_fill();
						$nex_btn.hide();
						$submit_btn.show();
					}
				}
			});

			//初始化a值
			$li_choice.hover(function() {
				a = $(this).index();
			});

			//初始化radio
			radio_sex_btn();

			//右侧列表按钮
			$choice1.click(function(event) {
					if(a == 0){list_group_active1();}
					else if(a == 1){list_group_active2();}
					else if(a == 2){list_group_active3();}
					else if(a == 3){list_group_active4();}
			});

			//年龄
			$li_age_group.hover(function() {
				c = $li_age_group.index();
			});
			$li_age_group_label1.click(function(event) {
				li_age_group_labelnotactive();
				$li_age_group_label1.addClass('label_active');
			});
			$li_age_group_label2.click(function(event) {
				li_age_group_labelnotactive();
				$li_age_group_label2.addClass('label_active');
			});
			$li_age_group_label3.click(function(event) {
				li_age_group_labelnotactive();
				$li_age_group_label3.addClass('label_active');
			});
			$li_age_group_label4.click(function(event) {
				li_age_group_labelnotactive();
				$li_age_group_label4.addClass('label_active');
			});
			$li_age_group_label5.click(function(event) {
				li_age_group_labelnotactive();
				$li_age_group_label5.addClass('label_active');
			});
			//介意
			$li_care_child.click(function(event) {
				$(this).toggleClass('li_care_list_child_active');
			});
			//需求
			var d = 0;
			 $li_demand.hover(function() {
			 	d = $(this).index();
			 });
			$li_demand_child.click(function(event) {
				$li_demand.eq(d).toggleClass('li_demand_list_active').siblings().removeClass('li_demand_list_active');
			});
			//提交
			$submit_btn.click(function(event) {
				list_group_fill();
				$group_center.hide();
				$submit_btn.hide();
				$li_choice.hide();
				$group_success.show();
				$li_finish.css({
					'background': 'url(../images/personal/personal_4s.png) no-repeat 0 0',
					'background-size': '100% 100%'
				});
				$li_finish.children('a').css({
					'background': 'url(../images/personal/personal_3.png) no-repeat 0 0',
					'background-size': '100% 100%'
				});

			});


			function li_age_group_labelnotactive(){
				$li_age_group_label1.removeClass('label_active');
				$li_age_group_label2.removeClass('label_active');
				$li_age_group_label3.removeClass('label_active');
				$li_age_group_label4.removeClass('label_active');
				$li_age_group_label5.removeClass('label_active');
			}

			function list_group_active1(){
				$li_choice.eq(0).children('div.group_down').show();
				$li_choice.eq(1).children('div.group_down').hide();
				$li_choice.eq(2).children('div.group_down').hide();
				$li_choice.eq(3).children('div.group_down').hide();
				$li_choice.eq(0).children("div.group_chose").addClass('group_chose_active');
				$li_choice.eq(1).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(2).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(3).children("div.group_chose").removeClass('group_chose_active');
				$group_center.hide();
				$nex_btn.show();
				$submit_btn.hide();
			}
			function list_group_active2(){
				$li_choice.eq(0).children('div.group_down').hide();
				$li_choice.eq(1).children('div.group_down').show();
				$li_choice.eq(2).children('div.group_down').hide();
				$li_choice.eq(3).children('div.group_down').hide();
				$li_choice.eq(0).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(1).children("div.group_chose").addClass('group_chose_active');
				$li_choice.eq(2).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(3).children("div.group_chose").removeClass('group_chose_active');
				$group_center.hide();
				$nex_btn.show();
				$submit_btn.hide();
			}
			function list_group_active3(){
				$li_choice.eq(0).children('div.group_down').hide();
				$li_choice.eq(1).children('div.group_down').hide();
				$li_choice.eq(2).children('div.group_down').show();
				$li_choice.eq(3).children('div.group_down').hide();
				$li_choice.eq(0).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(1).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(2).children("div.group_chose").addClass('group_chose_active');
				$li_choice.eq(3).children("div.group_chose").removeClass('group_chose_active');
				$group_center.hide();
				$nex_btn.show();
				$submit_btn.hide();
			}
			function list_group_active4(){
				$li_choice.eq(0).children('div.group_down').hide();
				$li_choice.eq(1).children('div.group_down').hide();
				$li_choice.eq(2).children('div.group_down').hide();
				$li_choice.eq(3).children('div.group_down').show();
				$li_choice.eq(0).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(1).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(2).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(3).children("div.group_chose").addClass('group_chose_active');
				$group_center.hide();
				$nex_btn.show();
				$submit_btn.hide();
			}
			function list_group_fill(){
				$li_choice.eq(0).children('div.group_down').hide();
				$li_choice.eq(1).children('div.group_down').hide();
				$li_choice.eq(2).children('div.group_down').hide();
				$li_choice.eq(3).children('div.group_down').hide();
				$li_choice.eq(0).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(1).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(2).children("div.group_chose").removeClass('group_chose_active');
				$li_choice.eq(3).children("div.group_chose").addClass('group_chose_active');
				$group_center.show();
				$li_create.css({
					'background': 'url(../images/personal/personal_4s.png) no-repeat 0 0',
					'background-size': '100% 100%'
				});
				$li_create.children('a').css({
					'background': 'url(../images/personal/personal_2.png) no-repeat 0 0',
					'background-size': '100% 100%'
				});
			}
		})
		function radio_sex_btn(){
             $('input[name="radio-btn"]').wrap('<div class="radio-btn"><i></i></div>');
             $("#personal_content .personal_content_service .center_personal_content_service .personal_content_service_right .group .group_top .group_top_list .li_sex .group_down .radio_group .radio-btn").on('click', function () {
              var _this = $(this),
                  block = _this.parent().parent();
              block.find('input:radio').attr('checked', false);
              block.find(".radio-btn").removeClass('checkedRadio');
              _this.addClass('checkedRadio');
              _this.find('input:radio').attr('checked', true);
            });
		}